<?php
App::uses('AppModel', 'Model');
class Content extends AppModel {
	public function isContentPage($page_name){
		if(!empty($page_name)){
			$data = $this->find('all',array(
				'conditions'=>array('Content.page_name'=>$page_name)
			));
			
			if(count($data)>0){
				return $data[0]['Content'];
			}else{
				return array();
			}
			
		}else{
			return array();	
		}
	}
}